package demon4;

import demo2.IShape;

public class Fish extends Animal implements ISwimming, IFlying,IRunning {
    public Fish(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println(this.name + "正在吃饲料");
    }

    @Override
    public void fly() {
        System.out.println(this.name + "正在飞");
    }

    @Override
    public void run() {
        System.out.println(this.name + "不会跑");
    }

    @Override
    public void swim() {
        System.out.println(this.name + "超级会游泳");
    }
}
